<div class="top-content mar-top-10">
	<?php include_once 'includes/bane.php';?>
	<?php $this->blkHotNews()?>              
	<div class="advert-top">
		<?php
                    $tblBane = new Zendvn_Models_Advert();
                    $bane = $tblBane->listItem($this->arrParam,array('task'=>'public'));
                    if (!empty($bane)){
                            foreach ($bane as $key =>$val){
                                    if($val['position_name'] == 'right-all' && $val['special'] == 1){
                                            $name = $val['name'];
                                            if(!empty($val['picture'])){
                                                    if($val[type] == 0){
                                                            $linkImg	= FILES_URL . '/adverts/orignal/' . $val['picture'];
                                                    $picture 	= '<img src="'. $linkImg .'" width="260" height="259" alt="'.$name.'" />';
                                                    }elseif ($val[type] == 1) {
                                                            $linkImg	= FILES_URL . '/flashs/' . $val['picture'];
                                                    include 'includes/flash_top.php';
                                                    }

                                            }else{
                                                $linkImg	= FILES_URL . '/adverts/images450x450/no-image.jpg';
                                                $picture 	= '<img width="260" height="259" src="'. $linkImg .'" alt="'.$name.'" />';
                                            }

                                            if(empty($val['url'])){
                                                    $lang = $this->arrParam['lang'];
                                                                     if(empty($lang)){
                                                                        $lang = 'vi';
                                                                    }else{
                                                                        $lang = $this->arrParam['lang'];
                                                                    }
                                                    $urlOptions = array('module'=>'news','controller'=>'index',
                                                                                                                                            'action'=>'advert',
                                                                                                                                            'id'=>$val['id'],
                                                                                                                                            'title'=>$val['alias'],
                                                                                                                    'lang'=>$lang);
                                                     $linkDetail = $this->url($urlOptions,'advert-detail');
                                            }else{
                                                    $linkDetail = $val['url'];
                                            }
					                
                	?>
                	<a target="_blank" href="<?php echo $linkDetail?>">
                    	<?php echo $picture?>
                    	<a style="height: 305px" target="_blank" class="link-advert" href="<?php echo $linkDetail?>"></a>
                    </a>
                    <?php }}}?>
	</div>           
</div>
